home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.amiga.misc
- References: <4j7ein$a6v@B1FF.mindspring.com> <31637208.2913@xgw.fi>
- X-Newsreader: MicroDot 1.8
- Mime-version: 1.0
- Content-Type: text/plain; charset=iso-8859-1
- Content-Transfer-encoding: 8BIT
- Path: news.tng.oche.de!tomate.tng.oche.de
- X-Gateway: ZCONNECT UE utomate.tng.oche.de.tomate.tng.oche.de [PolyNet zTOr V4.901 Serie: "light"]
- Subject: Re: AmigaOS 4.x features
- Message-ID: <xY6aBMD1A7aezA@0dietmar.tomate.tng.oche.de>
- Date: Thu, 4 Apr 96 9:37:53 GMT
- Organization: Developer
- X-ZC-TELEFON: +49-(0)241/81665
- X-ZC-POST: Mies-v-d-Rohe-Str.31 D-52074 Aachen
- From: DIETMAR@TOMATE.TNG.OCHE.DE (Dietmar Eilert)
-
- karttu@xgw.fi (Arttu KSrpinlehto ) schrieb am 03.04.1996:
-
- A)> [DOS pattern matching
- A)>
- A)> And, in addition, these pattern matching operations are available to any
- A)> application for any purpose, not just for filenames. By accessing a single
- A)> function in the dos.library DLL, one could easily implement a regexp string
- A)> search feature in a text editor or database application.
-
- No, you can't. The DOS functions only return TRUE or FALSE. Text editors
- need the exact position of the match within a line and the length of the
- found string (if wildcards are used in a replace pattern). You could write
- a frontend for those functions (calling pattern machting multiple times for
- substrings of the line until the match is found using a smart algorithm)
- but this solution has some logical limitations - you can not handle all
- possible patterns this way. Besides, it's slow. Support for backward search
- within text lines would require a frontend function, too: DOS functions
- support forward search only.
-
- * In a random sampling of GoldED users, 100% said that they'd rather use
- GoldED than be publically flogged, eaten alive by pirhanas, OR watch
- SeaQuest DSV.
-
- /\/\ GoldED Support: http://www.clearlight.com/~dietmar
- /\/\ E-Mail: dietmar@tomate.tng.oche.de
- /\/\ Fileserver: dietmar@clearlight.com (subject: send file info)
- Phone/FAX: +49-(0)241-81665-(Pause)-22
-
-